package main

import "fmt"

func main() {
	var a int = 10
	//fmt.Println("address: %x\n", &a)
	var ip *int //定义一个整型的指针
	ip = &a
	fmt.Println("a adress is and ip address is and ip value is =\n", &a, ip, *ip)
	test01()
}

/*
空指针
*/
func test01() {
	var ptr *int
	fmt.Println(ptr)
	fmt.Println(&ptr)
	fmt.Println(*&ptr)
}
